 |
 |
 |
 |
#153552 - 06/06/02 07:50 AM
Re: [6.3.x] [beta] MegaMod
|
Spotlight Runner-Up
Registered: 03/27/02
Posts: 422
Loc: England, UK
|
I re-hacked and everything worked fine with a couple of slight modifications. LD, the typo you mentioned isn't a typo, I left it there when I re-hacked and all is working peachy.. Brett, here's a couple of bug fixes for you: In ubb_lib_secgroups.cgi: return 1 if $self->{PRIMARY_GROUP} =~ m/^(administrators|megamoderators)$/); SHOULD BE: return 1 if $self->{PRIMARY_GROUP} =~ m/^(administrators|megamoderators)$/; In cp_common.pl: document.writeln("<option value=$vars_config{CGIURL}/cp.cgi?ubb=vars_megamod&r=$ran> - MegaModerator Settings</option>");' SHOULD BE: document.writeln("<option value=$vars_config{CGIURL}/cp.cgi?ubb=vars_megamod&r=$ran> - MegaModerator Settings</option>"); In ubb_lib.cgi You are asked to find this unless (($profile[8] eq 'Administrator')) { WHICH SHOULD BE: unless ($profile[8] eq 'Administrator') {
_________________________
- OBK  - Gaming Update - <img src="http://www.ubbdev.com/ud/?s=2&u=Oblivion Knight" alt=" - " /> Results Returned, <img src="http://www.ubbdev.com/ud/?u=Oblivion Knight&s=1" alt=" - " /> Points Collected & Counting!
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#153573 - 06/16/02 08:10 PM
Re: [6.3.x] [beta] MegaMod
|
Junior Member
Registered: 12/18/01
Posts: 24
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#153579 - 07/04/02 08:55 PM
Re: [6.3.x] [beta] MegaMod
|
Member
Registered: 12/13/00
Posts: 52
Loc: London,England
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#153584 - 07/05/02 05:27 PM
Re: [6.3.x] [beta] MegaMod
|
Moderator
Registered: 05/04/01
Posts: 992
Loc: Little Rock, AR
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#153604 - 08/13/02 05:48 AM
Re: [6.3.x] [beta] MegaMod
|
Spotlight Runner-Up
Registered: 03/27/02
Posts: 422
Loc: England, UK
|
Ok, with a few bug fixes of my own I've nearly got it working on 6.3.1.. I have one last problem in the MegaModerator settings with permissions.. When I set MegaMods it works fine, I re-enter the settings and I get the following error: quote: You do not have permission to access this area.
» Use your browser's back button to return. . I re-enter the MegaModerator settings again none of the MegaMods I set are there.. Any ideas..? 
_________________________
- OBK  - Gaming Update - <img src="http://www.ubbdev.com/ud/?s=2&u=Oblivion Knight" alt=" - " /> Results Returned, <img src="http://www.ubbdev.com/ud/?u=Oblivion Knight&s=1" alt=" - " /> Points Collected & Counting!
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#153605 - 08/13/02 08:10 AM
Re: [6.3.x] [beta] MegaMod
|
Spotlight Winner
Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
|
I was able to get past the error if I commented that line out but I have the same problem. after I set the megamods only 1 stays, and thats the second one in the top row. If I only set one then it seems fine (haven't gone far enough to see if he can mod) but if I set more than one then it get's messed up. The vars_megamods.cgi contains this if I set only one... code:</font><hr /> $Megamoderator = "00000001"; <hr /></blockquote>But it contains this if I set more than one... <blockquote><font class="small">code: [qb] $Megamoderator = "||^||00000012"; [/qb] Remember that I had to comment out this line in cp_vars_megamod.pl to even be able to set the megamods.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#153623 - 08/13/02 08:50 PM
Re: [6.3.x] [beta] MegaMod
|
Spotlight Winner
Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
|
There is still an extra bracket in there. this... code:</font><hr /> if($viewer_profile[8] eq 'Administrator' || $viewer_profile[8] eq 'MegaModerator')) {<hr /></blockquote>Should be this... <blockquote><font class="small">code: [qb] if($viewer_profile[8] eq 'Administrator' || $viewer_profile[8] eq 'MegaModerator') {[/qb] Edit: it is working great though...excellent hack.
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#153629 - 08/16/02 03:26 AM
Re: [6.3.x] [beta] MegaMod
|
Member
Registered: 03/11/01
Posts: 314
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#153630 - 08/17/02 06:29 AM
Re: [6.3.x] [beta] MegaMod
|
Junior Member
Registered: 07/06/02
Posts: 17
|
It also works in Ubb 6.3.0, but, a minor edit was neccesary: In Cp_user_titles.pl code:</font><hr /> ###FIND:
&RegField($vars_wordlets_cp{user_titles_mod_title}, "ModeratorTitle", "yes", "40", "1000", "", UBBCGI::escapeHTML($vars_misc{ModeratorTitle}), 3);
###ADD UNDER:
&AlternateColors;
&RegField($vars_wordlets_cp{user_titles_megamod_title}, "MegaModeratorTitle", "yes", "40", "1000", "", UBBCGI::escapeHTML($vars_misc{MegaModeratorTitle}), 3); <hr /></blockquote>HAS TO BE <blockquote><font class="small">code: [qb] ###FIND:
&RegField($vars_wordlets_cp{user_titles_mod_title}, "ModeratorTitle", "yes", "40", "1000", "", UBBCGI::escapeHTML($vars_misc{ModeratorTitle}), 3);
###ADD UNDER:
&RegField($vars_wordlets_cp{user_titles_megamod_title}, "MegaModeratorTitle", "yes", "40", "1000", "", UBBCGI::escapeHTML($vars_misc{MegaModeratorTitle}), 3); [/qb] but, thanks for this great hack! 
_________________________
i was X-tend, but i lost my mail and password
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#153643 - 09/16/02 03:28 AM
Re: [6.3.x] [beta] MegaMod
|
Spotlight Runner-Up
Registered: 03/27/02
Posts: 422
Loc: England, UK
|
Found a couple of bugs.. Fixing these also fixed the problem I had last night that we discussed on AIM In ubb_lib.cgiThis: code:</font><hr /> if (($profile[8] eq 'Administrator') || ($user_profile[8] eq 'MegaModerator')) {<hr /></blockquote>. Should be: <blockquote><font class="small">code: [qb] if (($profile[8] eq 'Administrator') || ($profile[8] eq 'MegaModerator')) {[/qb] . This: code:</font><hr /> unless (($profile[8] eq 'Administrator') || ($user_profile[8] eq 'MegaModerator')) {<hr /></blockquote>. Should be: <blockquote><font class="small">code: [qb] unless (($profile[8] eq 'Administrator') || ($profile[8] eq 'MegaModerator')) {[/qb] . In ubb_profile.cgiThis: code:</font><hr /> if(($viewer_profile[8] eq 'Administrator') || ($user_profile[8] eq 'MegaModerator') || ($user_profile[8] eq 'Moderator')) {<hr /></blockquote>. Should be: <blockquote><font class="small">code: [qb] if (($viewer_profile[8] eq 'Administrator') || ($viewer_profile[8] eq 'MegaModerator') || ($viewer_profile[8] eq 'Moderator')) {[/qb] . You're welcome.. 
_________________________
- OBK  - Gaming Update - <img src="http://www.ubbdev.com/ud/?s=2&u=Oblivion Knight" alt=" - " /> Results Returned, <img src="http://www.ubbdev.com/ud/?u=Oblivion Knight&s=1" alt=" - " /> Points Collected & Counting!
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#153655 - 12/09/02 09:26 PM
Re: [6.3.x] [beta] MegaMod
|
Junior Member
Registered: 03/24/02
Posts: 18
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#153666 - 08/11/03 01:02 AM
Re: [6.3.x] [beta] MegaMod
|
Moderator
Registered: 05/04/01
Posts: 992
Loc: Little Rock, AR
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#153670 - 10/21/04 02:29 AM
Re: [6.3.x] [beta] MegaMod
|
Moderator
Registered: 05/04/01
Posts: 992
Loc: Little Rock, AR
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|